﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AdministratorHome.aspx.vb"
    Inherits="LecturerAppointmentSystem.AdministratorHome" MasterPageFile="~/Inner.Master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">   
    <br />
    <br />
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
    <br />
    <table>
        <tr>
            <td>
                <asp:LinkButton ID="lb_UserList" runat="server">List of Users</asp:LinkButton>
            </td>
            <td rowspan="3" style="width:80%">
                <asp:MultiView ID="AdminMultiView" runat="server">
                    <asp:View ID="UserListView" runat="server">
                    <table class="GridViewClass">
        <tr>
            <td>
                <asp:Button ID="lb_UsersByName" runat="server" Text="Users By Name"/>
            </td>
            <td>
                <asp:Button ID="lb_UsersByRoles" runat="server" Text="Users By Roles"/>
            </td>
            <td>
                <asp:Button ID="lb_ActiveUsers" runat="server" Text="Active Users"/>
            </td>
            <td>
                <asp:Button ID="lb_LockedOutUsers" runat="server" Text="Locked Out Users"/>
            </td>
            <td>
                <asp:Button ID="lb_OnlineUsers" runat="server" Text="Online Users"/>
            </td>
        </tr>
    </table>
                        <br />
                    <asp:Panel ID="AlphabetPanel" runat="server">
                        </asp:Panel>
                        <asp:Panel ID="RolePanel" runat="server" Visible ="false">
                            <asp:DropDownList ID="ddl_RoleList" runat="server" AutoPostBack="true" 
                            OnSelectedIndexChanged="setRoleDataSource" 
                             OnDataBound="AddBlankItem">
                            </asp:DropDownList>
                        </asp:Panel>
                        <br />
                        <asp:GridView ID="UserListGridView" runat="server" EnableModelValidation="True">
                            <EmptyDataTemplate>
                                There are no users with that name.
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </asp:View>
                    <asp:View ID="UserRolesView" runat="server">
                    </asp:View>
                </asp:MultiView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="lb_ManageUsers" runat="server">Manage Users</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="lb_ManageRoles" runat="server">Manage Roles</asp:LinkButton>
            </td>
        </tr>
    </table>
    
    <br />
    <br />

</asp:Content>
